﻿<f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:ajax="http://www.apusic.com/jsf/ajax" xmlns:biz="http://www.kingdee.com/jsf/biz" xmlns="http://www.w3.org/1999/xhtml" xmlns:om="http://www.apusic.com/jsf/misc" xmlns:kd="http://www.kingdee.com/jsf/component" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:layout="http://www.apusic.com/jsf/layout" xmlns:h="http://java.sun.com/jsf/html" xmlns:w="http://www.apusic.com/jsf/widget" renderKitId="AJAX">
	
	<ui:composition template="/custom/aoyuan/aytime/bizbill/list-template.xhtml">
	<ui:define name="resBefore">
	</ui:define>
		<ui:define name="resAfter">
		<f:loadBundle basename="com.kingdee.eas.custom.aoyuan.aytime.bizbill.web.HolidayBillListUIBean" var="extraMsgs" />
		<script type="text/javascript" src="js/holidayBillList.js"></script>
		<w:script language="javascript" src="/resource/common_best.js" />
		<w:script language="javascript" src="/resource/commonQuery.js" />
		</ui:define>
		<ui:define name="message">
			<kd:msgArea style=""></kd:msgArea>
		</ui:define>	
		<ui:define name="condition">
		</ui:define>		
		
		<ui:define name="toolbar">	
			<w:toolBar id="rootToolBar">
				<w:button id="btnAddNew" label="#{extraMsgs['btnAddNew.label']}" actionBinding="#{custom.aoyuan.aytime.bizbill.HolidayBillListUIBean.addNewAction}" />
				<w:button id="btnView" jsvar="btnView" label="#{extraMsgs['btnView.label']}" actionBinding="#{custom.aoyuan.aytime.bizbill.HolidayBillListUIBean.viewAction}" />
				<w:button id="btnEdit" label="#{extraMsgs['btnEdit.label']}" actionBinding="#{custom.aoyuan.aytime.bizbill.HolidayBillListUIBean.editAction}" />
				<h:commandButton id="view" value="审批明细" onclick="auditView_onclick();" />	
				<w:button id="btnClose" label="作废" actionBinding="#{custom.aoyuan.aytime.bizbill.HolidayBillListUIBean.actionCloseBill}" />
				<w:button id="btnRemove" label="#{extraMsgs['btnRemove.label']}" actionBinding="#{custom.aoyuan.aytime.bizbill.HolidayBillListUIBean.deleteAction}" />
				<w:button id="btnRefresh" label="#{extraMsgs['btnRefresh.label']}" actionBinding="#{custom.aoyuan.aytime.bizbill.HolidayBillListUIBean.refreshAction}" />
				<w:button id="btnQuery" label="#{extraMsgs['btnQuery.label']}" actionBinding="#{custom.aoyuan.aytime.bizbill.HolidayBillListUIBean.queryAction}" />			
				<!--<w:button id="btnExit" label="#{extraMsgs['btnExit.label']}" actionBinding="#{custom.aoyuan.aytime.bizbill.HolidayBillListUIBean.exitAction}" />-->
			</w:toolBar>		
		</ui:define>	
		
		
		<ui:define name="list">	
			<div style="height:#{custom.aoyuan.aytime.bizbill.HolidayBillListUIBean.showHeight}px;width: 99.9%">	
			<w:dataGrid id="grid" paged="true" stripeRows="true" trackMouseOver="false" 
				rows="#{custom.aoyuan.aytime.bizbill.HolidayBillListUIBean.displayRows}" jsvar="listGrid"
				style="overflow-x:auto;overflow-y:hidden;height:#{custom.aoyuan.aytime.bizbill.HolidayBillListUIBean.showHeight}px;" binding="#{custom.aoyuan.aytime.bizbill.HolidayBillListUIBean.grid}"
				value="#{custom.aoyuan.aytime.bizbill.HolidayBillListUIBean.pagedListData}" var="data">
					<ajax:action actionListener="#{custom.aoyuan.aytime.bizbill.HolidayBillListUIBean.grid_onselectionchange_actionPerformed}" rendered="true" immediate="false" event="onselectionchange" />
					<w:outputColumn id="idColumn" header="#{extraMsgs['idColumn.header']}" width="100" hidden="true" value="#{data['id']}" />
					<w:outputColumn id="numberColumn" header="#{extraMsgs['numberColumn.header']}" width="160" value="#{data['number']}" />
					<w:outputColumn id="statusColumn" header="#{extraMsgs['statusColumn.header']}" width="100" value="#{data['status']}" />
					<w:outputColumn id="applier_nameColumn" header="#{extraMsgs['applier_nameColumn.header']}" width="100" value="#{data['applier.name']}" />
					<w:outputColumn id="entrys_BizDateColumn" header="#{extraMsgs['entrys_BizDateColumn.header']}" width="100" value="#{data['entrys.BizDate']}" />
					<w:outputColumn id="entrys_holidayType_nameColumn" header="#{extraMsgs['entrys_holidayType_nameColumn.header']}" width="100" value="#{data['entrys.holidayType.name']}" />
					<w:outputColumn id="entrys_StartTimeColumn" header="#{extraMsgs['entrys_StartTimeColumn.header']}" width="100" value="#{data['entrys.StartTime']}" />
					<w:outputColumn id="entrys_EndTimeColumn" header="#{extraMsgs['entrys_EndTimeColumn.header']}" width="100" value="#{data['entrys.EndTime']}" />
					<w:outputColumn id="entrys_Remark0Column" header="#{extraMsgs['entrys_Remark0Column.header']}" width="100" value="#{data['entrys.Remark0']}" />
					<w:outputColumn id="entrys_totalhourColumn" header="#{extraMsgs['entrys_totalhourColumn.header']}" width="100" value="#{data['entrys.totalhour']}" />					
					<w:outputColumn id="bizDateColumn" header="#{extraMsgs['bizDateColumn.header']}" width="100" value="#{data['bizDate']}" />
					<w:outputColumn id="Dept_nameColumn" header="#{extraMsgs['Dept_nameColumn.header']}" width="100" value="#{data['Dept.name']}" />
					<w:outputColumn id="position_nameColumn" header="#{extraMsgs['position_nameColumn.header']}" width="100" value="#{data['position.name']}" />
					<w:outputColumn id="HROrgUnitnameColumn" header="HR组织" width="100" value="#{data['HROrgUnit.name']}" />
					<w:outputColumn id="RemarkColumn" header="#{extraMsgs['RemarkColumn.header']}" width="100" value="#{data['Remark']}" />
				</w:dataGrid>
			</div>									
		</ui:define>
		<ui:define name="innerAjaxActions">
			<biz:billListInnerAjaxAction beanName="#{custom.aoyuan.aytime.bizbill.HolidayBillListUIBean}"></biz:billListInnerAjaxAction>
		</ui:define>
		<ui:define name="inner-window">
			<biz:innerWindow beanName="#{custom.aoyuan.aytime.bizbill.HolidayBillListUIBean}"></biz:innerWindow>
		</ui:define>
	</ui:composition>							
</f:view>